﻿#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion

using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Lokad.Monitoring.Persistence.Models
{
    [DataContract]
    public class RsmDocument
    {
        /// <summary>For O/R mapping purposes only.</summary>
        [DataMember]
        public long Id { get; set; }

        /// <summary>For O/R mapping purposes only.</summary>
        [DataMember]
        public DateTime Retrieved { get; set; }

        /// <summary>For O/R mapping purposes only.</summary>
        [DataMember]
        public bool IsFault { get; set; }

        [DataMember]
        public IList<Message> Messages { get; set; }

        [DataMember]
        public IList<Indicator> Indicators { get; set; }

        public RsmDocument()
        {
            Messages = new List<Message>();
            Indicators = new List<Indicator>();
        }
    }
}